package com.itcast.domain;

import java.io.Serializable;

public class Student implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	public static final String db_id_string = "db_id";
	public static final String stu_name_string = "stu_name";
	public static final String form_id_string = "form_id";
	public static final String stu_sex_string = "stu_sex";
	public static final String stu_ins_string = "stu_ins";
	public static final String stu_class_string = "stu_class";
	public static final String custom1_string = "custom1";
	public static final String custom2_string = "custom2";
	public static final String custom3_string = "custom3";
	public static final String custom4_string = "custom4";
	public static final String custom5_string = "custom5";
	
	private Integer db_id;
	private String stu_name;
	private String form_id;
	private String stu_sex;
	private String stu_ins;
	private String stu_class;
	private String custom1;
	private String custom2;
	private String custom3;
	private String custom4;
	private String custom5;
	
	public Integer getDb_id() {
		return db_id;
	}
	public String getStu_name() {
		return stu_name;
	}
	public String getForm_id() {
		return form_id;
	}
	public String getStu_sex() {
		return stu_sex;
	}
	public String getStu_ins() {
		return stu_ins;
	}
	public String getStu_class() {
		return stu_class;
	}
	public String getCustom1() {
		return custom1;
	}
	public String getCustom2() {
		return custom2;
	}
	public String getCustom3() {
		return custom3;
	}
	public String getCustom4() {
		return custom4;
	}
	public String getCustom5() {
		return custom5;
	}
	public void setDb_id(int db_id) {
		this.db_id = db_id;
	}
	public void setStu_name(String stu_name) {
		this.stu_name = stu_name;
	}
	public void setForm_id(String form_id) {
		this.form_id = form_id;
	}
	public void setStu_sex(String stu_sex) {
		this.stu_sex = stu_sex;
	}
	public void setStu_ins(String stu_ins) {
		this.stu_ins = stu_ins;
	}
	public void setStu_class(String stu_class) {
		this.stu_class = stu_class;
	}
	public void setCustom1(String custom1) {
		this.custom1 = custom1;
	}
	public void setCustom2(String custom2) {
		this.custom2 = custom2;
	}
	public void setCustom3(String custom3) {
		this.custom3 = custom3;
	}
	public void setCustom4(String custom4) {
		this.custom4 = custom4;
	}
	public void setCustom5(String custom5) {
		this.custom5 = custom5;
	}
	
	@Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((db_id == null) ? 0 : db_id.hashCode());
        result = prime * result + ((form_id == null) ? 0 : form_id.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj)
    {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        Student other = (Student) obj;
        if (db_id == null)
        {
            if (other.db_id != null)
                return false;
        }
        else if (!db_id.equals(other.db_id))
            return false;
        if (form_id == null)
        {
            if (other.form_id != null)
                return false;
        }
        else if (!form_id.equals(other.form_id))
            return false;
        return true;
    }
	
}
